package com.dzh.mapper;

import com.dzh.pojo.Ticket;
import com.dzh.pojo.UserTicket;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@Mapper
public interface UserTicketMapper {
    List<UserTicket> queryAllByUsername(String username);

    //判断用户是否买票了
    Integer queryUsernameifnull(String username);

    UserTicket addUserTicket(String username,String tid);

    //改票后列表人的票也改
    Integer updateTidByAdmin(String tid,String tid1);
}
